package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * BE_Formula实体类
 * 
 * @author 
 *
 */
public class BeFormula {
	/***/
	private Object ID; 
	/***/
	private Integer OrderUserID; 
	/***/
	private String WaterTypeCode; 
	/***/
	private String AllotText; 
	/***/
	private Integer AllotType; 
	/***/
	private Integer AllotValue; 
	/**
	 * 实例化
	 */
	public BeFormula() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public BeFormula(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("OrderUserID") instanceof Number) {
			this.setOrderUserID(((Number) obj.get("OrderUserID")).intValue());
		}
		if (obj.get("WaterTypeCode") instanceof String) {
			this.setWaterTypeCode((String) obj.get("WaterTypeCode"));
		}
		if (obj.get("AllotText") instanceof String) {
			this.setAllotText((String) obj.get("AllotText"));
		}
		if (obj.get("AllotType") instanceof Number) {
			this.setAllotType(((Number) obj.get("AllotType")).intValue());
		}
		if (obj.get("AllotValue") instanceof Number) {
			this.setAllotValue(((Number) obj.get("AllotValue")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getOrderUserID() != null) {
			result.put("OrderUserID",this.getOrderUserID());
		}
		if (this.getWaterTypeCode() != null) {
			result.put("WaterTypeCode",this.getWaterTypeCode());
		}
		if (this.getAllotText() != null) {
			result.put("AllotText",this.getAllotText());
		}
		if (this.getAllotType() != null) {
			result.put("AllotType",this.getAllotType());
		}
		if (this.getAllotValue() != null) {
			result.put("AllotValue",this.getAllotValue());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取OrderUserID
	 * 
	 * @return
	 */
	public Integer getOrderUserID() {
		return OrderUserID;
	}

	/**
	 * 设置OrderUserID
	 * 
	 * @param OrderUserID
	 */
	public void setOrderUserID(Integer OrderUserID) {
		this.OrderUserID = OrderUserID;
	}
	
	/**
	 * 获取WaterTypeCode
	 * 
	 * @return
	 */
	public String getWaterTypeCode() {
		return WaterTypeCode;
	}

	/**
	 * 设置WaterTypeCode
	 * 
	 * @param WaterTypeCode
	 */
	public void setWaterTypeCode(String WaterTypeCode) {
		this.WaterTypeCode = WaterTypeCode;
	}
	
	/**
	 * 获取AllotText
	 * 
	 * @return
	 */
	public String getAllotText() {
		return AllotText;
	}

	/**
	 * 设置AllotText
	 * 
	 * @param AllotText
	 */
	public void setAllotText(String AllotText) {
		this.AllotText = AllotText;
	}
	
	/**
	 * 获取AllotType
	 * 
	 * @return
	 */
	public Integer getAllotType() {
		return AllotType;
	}

	/**
	 * 设置AllotType
	 * 
	 * @param AllotType
	 */
	public void setAllotType(Integer AllotType) {
		this.AllotType = AllotType;
	}
	
	/**
	 * 获取AllotValue
	 * 
	 * @return
	 */
	public Integer getAllotValue() {
		return AllotValue;
	}

	/**
	 * 设置AllotValue
	 * 
	 * @param AllotValue
	 */
	public void setAllotValue(Integer AllotValue) {
		this.AllotValue = AllotValue;
	}

	@Override
	public String toString() {
		return "BeFormula [ID=" + ID + " , OrderUserID=" + OrderUserID + " , WaterTypeCode=" + WaterTypeCode + " , AllotText=" + AllotText + " , AllotType=" + AllotType + " , AllotValue=" + AllotValue + "  ]";
	
	}
	
	
}
